<?php

    function smarty_function_page_action($params, &$smarty)
	{
		$code = '$view = new '.$smarty->Page->Module->ClassPrefix."_".$smarty->Page->Action->ClassName.'($smarty->Page, $smarty->Page->Module, $smarty->Page->Action);';
		eval($code);
		$view->Render();
	}

?>
